using MonorailTest.Core.Domain;
using MonorailTest.Core.DTO;

namespace MonorailTest.Core.Mapper
{
    public class PostMapper : IPostMapper
    {
        public IPost MapFrom(NewPostDTO dto)
        {
            return new Post(dto.Title, dto.Description, dto.Content);
        }
    }
}